package com.eian.boot.module.system.user.model.vo;

import com.eian.boot.module.system.post.model.vo.PostSimpleVO;
import com.eian.boot.module.system.role.model.vo.RoleVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(name = "用户详情响应")
public class UserDetailVO {
    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号")
    private String telephone;

    @Schema(description = "头像URL")
    private String avatar;

    @Schema(description = "状态：0-禁用，1-启用")
    private Integer status;

    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;

    @Schema(description = "最后登录IP")
    private String lastLoginIp;

    @Schema(description = "备注信息")
    private String remark;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "修改时间")
    private LocalDateTime modifiedAt;

    @Schema(description = "角色列表")
    private List<RoleVO> roles;

    @Schema(description = "岗位列表")
    private List<PostSimpleVO> posts;
}
